home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / zgerfs.z / zgerfs
Encoding:
Text File  |  2002-10-03  |  5.7 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ZZZZGGGGEEEERRRRFFFFSSSS((((3333SSSS))))                                                          ZZZZGGGGEEEERRRRFFFFSSSS((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ZGERFS - improve the computed solution to a system of linear equations
  10.      and provides error bounds and backward error estimates for the solution
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE ZGERFS( TRANS, N, NRHS, A, LDA, AF, LDAF, IPIV, B, LDB, X,
  14.                         LDX, FERR, BERR, WORK, RWORK, INFO )
  15.  
  16.          CHARACTER      TRANS
  17.  
  18.          INTEGER        INFO, LDA, LDAF, LDB, LDX, N, NRHS
  19.  
  20.          INTEGER        IPIV( * )
  21.  
  22.          DOUBLE         PRECISION BERR( * ), FERR( * ), RWORK( * )
  23.  
  24.          COMPLEX*16     A( LDA, * ), AF( LDAF, * ), B( LDB, * ), WORK( * ), X(
  25.                         LDX, * )
  26.  
  27. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  28.      These routines are part of the SCSL Scientific Library and can be loaded
  29.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  30.      directs the linker to use the multi-processor version of the library.
  31.  
  32.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  33.      4 bytes (32 bits). Another version of SCSL is available in which integers
  34.      are 8 bytes (64 bits).  This version allows the user access to larger
  35.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  36.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  37.      only one of the two versions; 4-byte integer and 8-byte integer library
  38.      calls cannot be mixed.
  39.  
  40. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  41.      ZGERFS improves the computed solution to a system of linear equations and
  42.      provides error bounds and backward error estimates for the solution.
  43.  
  44. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  45.      TRANS   (input) CHARACTER*1
  46.              Specifies the form of the system of equations:
  47.              = 'N':  A * X = B     (No transpose)
  48.              = 'T':  A**T * X = B  (Transpose)
  49.              = 'C':  A**H * X = B  (Conjugate transpose)
  50.  
  51.      N       (input) INTEGER
  52.              The order of the matrix A.  N >= 0.
  53.  
  54.      NRHS    (input) INTEGER
  55.              The number of right hand sides, i.e., the number of columns of
  56.              the matrices B and X.  NRHS >= 0.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZGGGGEEEERRRRFFFFSSSS((((3333SSSS))))                                                          ZZZZGGGGEEEERRRRFFFFSSSS((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      A       (input) COMPLEX*16 array, dimension (LDA,N)
  75.              The original N-by-N matrix A.
  76.  
  77.      LDA     (input) INTEGER
  78.              The leading dimension of the array A.  LDA >= max(1,N).
  79.  
  80.      AF      (input) COMPLEX*16 array, dimension (LDAF,N)
  81.              The factors L and U from the factorization A = P*L*U as computed
  82.              by ZGETRF.
  83.  
  84.      LDAF    (input) INTEGER
  85.              The leading dimension of the array AF.  LDAF >= max(1,N).
  86.  
  87.      IPIV    (input) INTEGER array, dimension (N)
  88.              The pivot indices from ZGETRF; for 1<=i<=N, row i of the matrix
  89.              was interchanged with row IPIV(i).
  90.  
  91.      B       (input) COMPLEX*16 array, dimension (LDB,NRHS)
  92.              The right hand side matrix B.
  93.  
  94.      LDB     (input) INTEGER
  95.              The leading dimension of the array B.  LDB >= max(1,N).
  96.  
  97.      X       (input/output) COMPLEX*16 array, dimension (LDX,NRHS)
  98.              On entry, the solution matrix X, as computed by ZGETRS.  On exit,
  99.              the improved solution matrix X.
  100.  
  101.      LDX     (input) INTEGER
  102.              The leading dimension of the array X.  LDX >= max(1,N).
  103.  
  104.      FERR    (output) DOUBLE PRECISION array, dimension (NRHS)
  105.              The estimated forward error bound for each solution vector X(j)
  106.              (the j-th column of the solution matrix X).  If XTRUE is the true
  107.              solution corresponding to X(j), FERR(j) is an estimated upper
  108.              bound for the magnitude of the largest element in (X(j) - XTRUE)
  109.              divided by the magnitude of the largest element in X(j).  The
  110.              estimate is as reliable as the estimate for RCOND, and is almost
  111.              always a slight overestimate of the true error.
  112.  
  113.      BERR    (output) DOUBLE PRECISION array, dimension (NRHS)
  114.              The componentwise relative backward error of each solution vector
  115.              X(j) (i.e., the smallest relative change in any element of A or B
  116.              that makes X(j) an exact solution).
  117.  
  118.      WORK    (workspace) COMPLEX*16 array, dimension (2*N)
  119.  
  120.      RWORK   (workspace) DOUBLE PRECISION array, dimension (N)
  121.  
  122.      INFO    (output) INTEGER
  123.              = 0:  successful exit
  124.              < 0:  if INFO = -i, the i-th argument had an illegal value
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ZZZZGGGGEEEERRRRFFFFSSSS((((3333SSSS))))                                                          ZZZZGGGGEEEERRRRFFFFSSSS((((3333SSSS))))
  137.  
  138.  
  139.  
  140. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  141.      ITMAX is the maximum number of steps of iterative refinement.
  142.  
  143. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  144.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  145.  
  146.      This man page is available only online.
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.